翻訳と辞書
Words near each other
・ Abstract machine notation
・ Abstract management
・ Abstract model theory
・ Abstract nonsense
・ Abstract object theory
・ Abstract of judgment
・ Abstract particulars
・ Abstract photography
・ Abstract Point of View
・ Abstract polytope
・ Abstract Principles Taken to Their Logical Extremes
・ Abstract process
・ Abstract rewriting machine
・ Abstract rewriting system
・ Abstract Rude
Abstract semantic graph
・ Abstract simplicial complex
・ Abstract space
・ Abstract State Machine Language
・ Abstract state machines
・ Abstract strategy game
・ Abstract structure
・ Abstract syntax
・ Abstract Syntax Notation One
・ Abstract syntax tree
・ Abstract Theory
・ Abstract type
・ Abstract Wiener space
・ Abstract Window Toolkit
・ Abstract-Type and Scheme-Definition Language


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Abstract semantic graph : ウィキペディア英語版
Abstract semantic graph

In computer science, an abstract semantic graph (ASG) or term graph is a form of abstract syntax in which an expression of a formal or programming language is represented by a graph whose vertices are the expression's subterms. An ASG is at a higher level of abstraction than an abstract syntax tree (or AST), which is used to express the syntactic structure of an expression or program.
ASGs are more complex and concise than ASTs because they may contain shared subterms (also known as "common subexpressions"). Abstract semantic graphs are often used as an intermediate representation by compilers to store the results of performing common subexpression elimination upon abstract syntax trees. ASTs are trees and are thus incapable of representing shared terms. ASGs are usually directed acyclic graphs. However, they may contain cycles, particularly in the field of graph rewriting. Graphs that contain cycles may represent recursive expressions which are commonly used to express iteration in functional programming languages without looping constructs.
The nomenclature ''term graph'' is associated with the field of term graph rewriting, which involves the transformation and processing of expressions by the specification of rewriting rules, whereas ''abstract semantic graph'' is used when discussing linguistics, programming languages, type systems and compilation.
Abstract syntax trees are not capable of representing shared subexpressions due to their simplistic structure; this simplicity comes at a cost of efficiency due to redundant duplicate computations of identical terms. For this reason ASGs are often used as an intermediate language at a subsequent compilation stage to abstract syntax tree construction via parsing.
An abstract semantic graph is typically constructed from an abstract syntax tree by a process of enrichment and abstraction. The enrichment can for example be the addition of back-pointers, edges from an identifier node (where a variable is being used) to a node representing the declaration of that variable. The abstraction can entail the removal of details which are relevant only in parsing, not for semantics.
==See also==

*Abstract syntax tree
*Ontology (computer science)
*Semantic Web
*Semantic Grid

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Abstract semantic graph」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.